﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SPlacardDetailInfo extends IMessageBase
    {
        public var placardConfigId:int;
        public var bosslevel:int;
        public var failedChallengerName:String;
        public var defenderInfo:SPlacardDefenderInfo;
        public const _type:int = 161;
        public static var _regist:SPlacardDetailInfo = new SPlacardDetailInfo(true);

        public function SPlacardDetailInfo(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SPlacardDetailInfo();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.placardConfigId);
            param1.writeInt(this.bosslevel);
            param1.writeString(this.failedChallengerName);
            this.defenderInfo.__write(param1);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.placardConfigId = param1.readInt();
            this.bosslevel = param1.readInt();
            this.failedChallengerName = param1.readString();
            this.defenderInfo = new SPlacardDefenderInfo();
            this.defenderInfo.__read(param1);
            return;
        }// end function

    }
}
